﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="catalogConfigTips.aspx.cs" Inherits="Admin_catalogConfigTips" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Catalogo Config Tip Jardin</title>
    <style type="text/css">
        .fontLabel
        {
            font-family: Calibri;
            font-size: medium;
        }

        .textField
        {
            padding-left: 15px;
        }

        .buttonExtNet
        {
            height: 22px;
            vertical-align: bottom;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <ext:ResourceManager ID="ResourceManagerCatalog" runat="server" />
            <ext:Viewport ID="ViewPortSite" runat="server" Layout="FitLayout">
                <Items>
                    <ext:Panel ID="Panel1" Layout="FitLayout" runat="server">
                        <Items>
                            <ext:Panel ID="pnlTipsJardin" runat="server" Icon="Application" Border="false" Header="false"
                                Closable="false" AutoHeight="true" AutoScroll="true">
                                <TopBar>
                                    <ext:Toolbar ID="toolbProductInfoDetail" runat="server">
                                        <Items>
                                            <ext:Button ID="SaveButton" runat="server" Text="Save" Icon="Disk">
                                                <DirectEvents>
                                                    <Click OnEvent="SaveButton_click" Failure="Ext.MessageBox.alert('Saving failed', 'Error during ajax event');">
                                                        <EventMask ShowMask="true" Target="CustomTarget" CustomTarget="={#{pnlTipsJardin}.body}" />
                                                    </Click>
                                                </DirectEvents>
                                            </ext:Button>
                                        </Items>
                                    </ext:Toolbar>
                                </TopBar>
                                <Items>
                                    <ext:FormPanel ID="pnlTipsJardinCatalog" runat="server" Title="Catalogo Tips Jardin"
                                        Icon="Newspaper" DefaultAnchor="100%" BodyPadding="5">
                                        <Items>
                                            <ext:FieldSet ID="FieldSet1" runat="server">
                                                <Items>
                                                    <ext:FieldContainer ID="fieldcontainer1" runat="server" Layout="HBoxLayout" Margin="10">
                                                        <Items>
                                                            <ext:FileUploadField ID="uploadField" runat="server" Width="400" Icon="Attach" AllowBlank="false"
                                                                FieldLabel="Ubicacion">
                                                            </ext:FileUploadField>
                                                            <ext:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                                                            </ext:ToolbarSeparator>
                                                            <ext:Button ID="btnUploadImage" runat="server" Text="Cambiar Foto">
                                                                <DirectEvents>
                                                                    <Click OnEvent="UploadClick" Before="if (!#{pnlTipsJardinCatalog}.getForm().isValid()) { return false; } 
                                                            Ext.Msg.wait('Cargando Imagen...', 'Cargando');"
                                                                        Failure="Ext.Msg.show({ 
                                                            title   : 'Error', 
                                                            msg     : 'Error during uploading', 
                                                            minWidth: 200, 
                                                            modal   : true, 
                                                            icon    : Ext.Msg.ERROR, 
                                                            buttons : Ext.Msg.OK 
                                                        });"
                                                                        >
                                                                        <ExtraParams>
                                                                           
                                                                        </ExtraParams>
                                                                    </Click>
                                                                </DirectEvents>
                                                            </ext:Button>
                                                            <ext:DisplayField ID="dpfImageSizeCatHome" runat="server" LabelAlign="Right" />
                                                             <ext:Image runat="server" ImageUrl="../Images/tipsjardin/tipsjardin.jpg" Width="142" Height="58" ID="imagenTip"></ext:Image>
                                                        </Items>
                                                    </ext:FieldContainer>
                                                    <ext:FieldContainer ID="fieldcontainer4" runat="server" Layout="HBoxLayout" Margin="10" FieldLabel="Contenido Tips Jardin">
                                                        <Items>
                                                            <ext:HtmlEditor ID="htmlContent" runat="server" FieldLabel="Contenido" Name="Content"
                                                                LabelAlign="Top" Height="350" Margin="5" Width="560" />
                                                        </Items>
                                                    </ext:FieldContainer>
                                                </Items>
                                            </ext:FieldSet>
                                        </Items>
                                    </ext:FormPanel>
                                </Items>
                            </ext:Panel>
                        </Items>
                    </ext:Panel>
                </Items>
            </ext:Viewport>
        </div>
    </form>
</body>
</html>
